Integrand size = 15, antiderivative size = 28 \[ \int \frac {(a+b x) \cosh (c+d x)}{x} \, dx=a \cosh (c) \text {Chi}(d x)+\frac {b \sinh (c+d x)}{d}+a \sinh (c) \text {Shi}(d x) \]
[Out]
Time = 0.12 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {6874, 2717, 3384, 3379, 3382} \[ \int \frac {(a+b x) \cosh (c+d x)}{x} \, dx=a \cosh (c) \text {Chi}(d x)+a \sinh (c) \text {Shi}(d x)+\frac {b \sinh (c+d x)}{d} \]
[In]
[Out]
Rule 2717
Rule 3379
Rule 3382
Rule 3384
Rule 6874
Rubi steps \begin{align*} \text {integral}& = \int \left (b \cosh (c+d x)+\frac {a \cosh (c+d x)}{x}\right ) \, dx \\ & = a \int \frac {\cosh (c+d x)}{x} \, dx+b \int \cosh (c+d x) \, dx \\ & = \frac {b \sinh (c+d x)}{d}+(a \cosh (c)) \int \frac {\cosh (d x)}{x} \, dx+(a \sinh (c)) \int \frac {\sinh (d x)}{x} \, dx \\ & = a \cosh (c) \text {Chi}(d x)+\frac {b \sinh (c+d x)}{d}+a \sinh (c) \text {Shi}(d x) \\ \end{align*}
Time = 0.06 (sec) , antiderivative size = 39, normalized size of antiderivative = 1.39 \[ \int \frac {(a+b x) \cosh (c+d x)}{x} \, dx=a \cosh (c) \text {Chi}(d x)+\frac {b \cosh (d x) \sinh (c)}{d}+\frac {b \cosh (c) \sinh (d x)}{d}+a \sinh (c) \text {Shi}(d x) \]
[In]
[Out]
Time = 0.11 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.86
method | result | size |
risch | \(-\frac {a \,{\mathrm e}^{c} \operatorname {Ei}_{1}\left (-d x \right )}{2}-\frac {a \,{\mathrm e}^{-c} \operatorname {Ei}_{1}\left (d x \right )}{2}-\frac {{\mathrm e}^{-d x -c} b}{2 d}+\frac {{\mathrm e}^{d x +c} b}{2 d}\) | \(52\) |
meijerg | \(\frac {b \cosh \left (c \right ) \sinh \left (d x \right )}{d}-\frac {b \sinh \left (c \right ) \sqrt {\pi }\, \left (\frac {1}{\sqrt {\pi }}-\frac {\cosh \left (d x \right )}{\sqrt {\pi }}\right )}{d}+\frac {a \cosh \left (c \right ) \sqrt {\pi }\, \left (\frac {2 \gamma +2 \ln \left (x \right )+2 \ln \left (i d \right )}{\sqrt {\pi }}+\frac {2 \,\operatorname {Chi}\left (d x \right )-2 \ln \left (d x \right )-2 \gamma }{\sqrt {\pi }}\right )}{2}+a \,\operatorname {Shi}\left (d x \right ) \sinh \left (c \right )\) | \(92\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.93 \[ \int \frac {(a+b x) \cosh (c+d x)}{x} \, dx=\frac {{\left (a d {\rm Ei}\left (d x\right ) + a d {\rm Ei}\left (-d x\right )\right )} \cosh \left (c\right ) + 2 \, b \sinh \left (d x + c\right ) + {\left (a d {\rm Ei}\left (d x\right ) - a d {\rm Ei}\left (-d x\right )\right )} \sinh \left (c\right )}{2 \, d} \]
[In]
[Out]
Time = 1.48 (sec) , antiderivative size = 39, normalized size of antiderivative = 1.39 \[ \int \frac {(a+b x) \cosh (c+d x)}{x} \, dx=- a \left (- \sinh {\left (c \right )} \operatorname {Shi}{\left (d x \right )} - \cosh {\left (c \right )} \operatorname {Chi}\left (d x\right )\right ) - b \left (\begin {cases} - x \cosh {\left (c \right )} & \text {for}\: d = 0 \\- \frac {\sinh {\left (c + d x \right )}}{d} & \text {otherwise} \end {cases}\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 97 vs. \(2 (28) = 56\).
Time = 0.27 (sec) , antiderivative size = 97, normalized size of antiderivative = 3.46 \[ \int \frac {(a+b x) \cosh (c+d x)}{x} \, dx=-\frac {1}{2} \, {\left (b {\left (\frac {{\left (d x e^{c} - e^{c}\right )} e^{\left (d x\right )}}{d^{2}} + \frac {{\left (d x + 1\right )} e^{\left (-d x - c\right )}}{d^{2}}\right )} + \frac {2 \, a \cosh \left (d x + c\right ) \log \left (x\right )}{d} - \frac {{\left ({\rm Ei}\left (-d x\right ) e^{\left (-c\right )} + {\rm Ei}\left (d x\right ) e^{c}\right )} a}{d}\right )} d + {\left (b x + a \log \left (x\right )\right )} \cosh \left (d x + c\right ) \]
[In]
[Out]
none
Time = 0.49 (sec) , antiderivative size = 47, normalized size of antiderivative = 1.68 \[ \int \frac {(a+b x) \cosh (c+d x)}{x} \, dx=\frac {a d {\rm Ei}\left (-d x\right ) e^{\left (-c\right )} + a d {\rm Ei}\left (d x\right ) e^{c} + b e^{\left (d x + c\right )} - b e^{\left (-d x - c\right )}}{2 \, d} \]
[In]
[Out]
Timed out. \[ \int \frac {(a+b x) \cosh (c+d x)}{x} \, dx=a\,\mathrm {coshint}\left (d\,x\right )\,\mathrm {cosh}\left (c\right )+a\,\mathrm {sinhint}\left (d\,x\right )\,\mathrm {sinh}\left (c\right )+\frac {b\,\mathrm {sinh}\left (c+d\,x\right )}{d} \]
[In]
[Out]